#if !defined(AFX_WIZARDPAGE_H__0CA1224E_3AF8_4E6C_900F_80F26629474F__INCLUDED_)
#define AFX_WIZARDPAGE_H__0CA1224E_3AF8_4E6C_900F_80F26629474F__INCLUDED_

#include "WzDataExportAnimate.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// WizardPage.h : header file
//

#define WM_WizardButtonSetFocus WM_USER + 1024
#define WM_IfReturnOnFinish WM_USER + 1025
/////////////////////////////////////////////////////////////////////////////
// CWizardPage dialog

class CWizardPage : public CDialog
{
// Construction
public:
	CWzDataExportAnimate* m_pData;

	virtual BOOL IsLastPage();
	void SaveFocus(HWND hwnd);
	CWizardPage* SetPrevPage(CWizardPage* pPrevPage);
	CWizardPage* SetNextPage(CWizardPage *pNextPage);
	BOOL Create(CWnd* pParent);
	CWizardPage* m_pNextPage;
	CWizardPage* m_pPrevPage;
	BOOL EnableNextButton(BOOL bEnabled);
	BOOL EnablePrevButton(BOOL bEnabled);
	virtual BOOL CanGoNext();
	virtual BOOL CanGoPrev();
	virtual BOOL ActivatePage();
	virtual BOOL ValidatePage();
	CWizardPage(UINT nIDTemplate, CWnd* pParent = NULL);   // standard constructor
	const UINT m_IDD;

// Dialog Data
	//{{AFX_DATA(CWizardPage)
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CWizardPage)
	public:
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	CString m_sBtnNext;
	CString m_sBtnFinish;
	void SetDefButton(HWND hwndParent, UINT nIDCtrl);
	void EnableNavigateButton(UINT nButtonID, BOOL bEnabled);
	CWnd* m_pFocusTarget;

	// Generated message map functions
	//{{AFX_MSG(CWizardPage)
	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_WIZARDPAGE_H__0CA1224E_3AF8_4E6C_900F_80F26629474F__INCLUDED_)
